package com.fourth.dao;

import com.fourth.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface UserMapper {
    List<User> selectAllUser();

    /**
     * 登录查询
     * @return
     */
    User selectUserByNameAndPass(@Param("uName") String uName, @Param("uPassword") String uPassword);

    /**
     * 通过查询用户名判断用户名是否存在
     * @param uName
     * @return
     */
    User selectUserByUName(String uName);

    /**
     * 插入用户
     * @param user
     * @return
     */
    int insertIntoUser(User user);

}